<?php
/**
 * Loading php files.
 *
 * @todo add functionality for model loading.
 * @author Tommy Vercety
 */
class Load {
 
	/**
	 *	Loads Views
	 *	
	 *	@param array $data
	 *	@param string $template
	 */
	public static function view($template, $data = array()) {
		$path = $template . '.php';
		if (file_exists($path)) {
			extract($data);
			require($path);
		}
	}

 }